<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">

<%@ taglib uri="/WEB-INF/struts-bean.tld" prefix="bean" %>
<%@ taglib uri="/WEB-INF/struts-html.tld" prefix="html" %>
<%@ taglib uri="/WEB-INF/struts-logic.tld" prefix="logic" %>
<%@ taglib uri="/WEB-INF/chiptrack-tags.tld" prefix="chiptrack" %>

<%@ page import="com.scalar.chiptrack.utils.ConfigManager"%>

<chiptrack:checkLogon sourcePage="/financeReport.do?action=product" />

<HTML><HEAD>

<%String chipTracContext = "/" + ConfigManager.getChipTracContext();%>

<script>
var dateElement = "";
    function openCalendar(dateValue)
    {
	dateElement = dateValue;
  	newWindow = window.open('<%=chipTracContext%>/jsp/includes/calendar.html','optionsPopup','channelmode=no,directories=no,toolbar=no,menubar=no,personalbar=no,status=no,scrollbars=no,width=180,height=440,resizable=no');
  	newWindow.moveTo(550,180);
  	newWindow.focus();
    }
    function cancelAndGoBack() {
            document.location = "jsp/finance/finance.jsp";
 }
	function assignDate(passedValue)
    {
	dateElement.value=passedValue;
	window.focus();
    }

function finance(){


    document.totalProductReport.prompt1.value = document.totalProductReport.fromdate.value;
    document.totalProductReport.prompt2.value = document.totalProductReport.todate.value;
    document.totalProductReport.prompt3.value = document.totalProductReport.step_size.value;

    if(document.totalProductReport.prompt1.value=='')
        document.totalProductReport.prompt1.value = '0';

    if(document.totalProductReport.prompt2.value=='')
        document.totalProductReport.prompt2.value='0';

    if(document.totalProductReport.prompt3.value=='')
        document.totalProductReport.prompt3.value='0';

    document.totalProductReport.action="<%=chipTracContext%>/jsp/report.jsp?nameReport=Finance/Cost/Std_Yielded_UnitCost.rpt";
    document.totalProductReport.submit();
}
</script>


<TITLE>Scalarsoft - ChipTrac</TITLE>
<META http-equiv=Content-Type content="text/html; charset=windows-1252">
<LINK href="<%=chipTracContext%>/jsp/includes/stylesheets/scalarsoft.css" type=text/css rel=stylesheet>

<META content="MSHTML 5.50.4807.2300" name=GENERATOR></HEAD>
<BODY bgColor=#ffffff leftMargin=0 topMargin=0 marginheight="0" marginwidth="0">

<!-- Top Header Start-->

<%@ include file="/jsp/includes/header.jsp" %>
<!-- Top Header End-->

<TABLE cellSpacing=0 cellPadding=0 width="100%" border=0>
  <TBODY>
  <TR>
	<td width='180' valign='top' background='<%=chipTracContext%>/jsp/includes/images/left_red_bg.gif'>

<!-- Side Navigation start -->

<%@ include file="/jsp/finance/finance_reports_menu.jsp" %>
<!-- end of the side navigations -->
<TD bgcolor="#ffffff">
<IMG height=9 src="<%=chipTracContext%>/jsp/includes/images/spacer.gif" width=8></TD>
<TD bgcolor="#ffffff"><IMG height=480 src="<%=chipTracContext%>/jsp/includes/images/spacer.gif" width=2></TD>
<TD valign="top" width="100%">

<IMG height=1 src="<%=chipTracContext%>/jsp/includes/images/clear.gif" width=500 border=0>
<BR>
<!-- from here your body starts -->

<form name="totalProductReport" method="post">
<input type="hidden" name="prompt3">
<input type="hidden" name="prompt4">

<center><span class="NArialW">Std. Yielded UnitCost Report</span></center>
<img src="<%=chipTracContext%>/jsp/includes/images/spacer.gif" height=20>

  <table border="0" width="90%" align=right>
    <tr><td colspan=5><img src="<%=chipTracContext%>/jsp/includes/images/spacer.gif" height=10></td></tr>
	<tr>
      <td width="15%"><font class="NArialL">Product</font></td>
	  <td width="20%"><font class="NArialL">
	     	<select size="1" name="prompt0" class="txfield">
			     <option value="">Select Any product</option>
           <logic:iterate id="mktgPartNumberSelectList" name="mktgPartNumberSelectList">
	<logic:notEqual name="mktgPartNumberSelectList" value="null">
 <option value = <bean:write name="mktgPartNumberSelectList" property="processStepId"/>>
 <bean:write name="mktgPartNumberSelectList" property="marketingPartNo"/>
 </option>
 </logic:notEqual>
 </logic:iterate>
        </select>

		</td>
        <td width="10%">&nbsp;</td>
        <td width="13%"><font class="NArialL">Step Size</font></td>
        <td width="20%"><font class="NArialL">
          	<input type="text" name="step_size" size="20" class="txfield" value="7"></font>&nbsp;
        </td>

       <td width="10%" colspan=4>&nbsp;</td>
    </tr>
    <tr>
      <td width="15%"><font class="NArialL">From-Date</font></td>
      <td width="20%"><font class="NArialL">
      	<input type="text" name="fromdate" size="20" class="txfield"></font>&nbsp;
  <a href="javascript:openCalendar(document.totalProductReport.fromdate)">
  <img border="0" src="<%=chipTracContext%>/jsp/includes/images/date_selector.gif" height=18 width=18></a></td>
      	<td width="10%">&nbsp;</td>
      <td width="13%"><font class="NArialL">To-Date</font></td>
      <td width="20%"><font class="NArialL">
      	<input type="text" name="todate" size="20" class="txfield"></font>&nbsp;
      	<a href="javascript:openCalendar(document.totalProductReport.todate)">
  <img border="0" src="<%=chipTracContext%>/jsp/includes/images/date_selector.gif" height=18 width=18></a>
  </td>
       <td width="10%">&nbsp;</td>
    </tr>

    <tr><td colspan=5><img src="<%=chipTracContext%>/jsp/includes/images/spacer.gif" height=20></td></tr>
	<tr>
      <td colspan=5 align=center><a href="javascript:finance();"><img border="0" src="<%=chipTracContext%>/jsp/includes/images/submit.gif" width="53" height="17"></a>
      &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;

      <a href="javascript:cancelAndGoBack();" onMouseOver="window.status='Click here to go back to Finance menu';return true" onMouseOut="window.status='';return true">
      <img border="0" src="<%=chipTracContext%>/jsp/includes/images/cancel.gif" width="53" height="17"></a></td>
    </tr>
  </table>

<input type = "hidden" name = "prompt1" value = "0">
<input type = "hidden" name = "prompt2" value = "0">
<!-- till here -->
<BR><BR><BR></TD>
<TD bgcolor="#ffffff"><IMG height=1 src="<%=chipTracContext%>/jsp/includes/images/spacer.gif" width=1></TD>
</TR>
</TABLE>
<!-- Footer starts here -->
<%@ include file="/jsp/includes/footer.jsp" %>
<!-- footer end here -->
</form>
</BODY>
</HTML>
